package com.yunhe.rentcars.pro.service.client;

import com.yunhe.rentcars.commons.dto.Pageable;
import com.yunhe.rentcars.pro.entity.client.BacList;
import com.yunhe.rentcars.pro.entity.client.ClientCompany;
import com.yunhe.rentcars.pro.entity.client.ClientUser;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;


/**
 * Created by Administrator on 2017/11/23 0023.
 */
public interface ClientUserService {
    /*
   * 分页
   * */
    Pageable<ClientUser> findPage(Integer offset,Integer limit);
    /*
    * 添加
    * */
    Long save(ClientUser clientUser, ClientCompany clienCompany);
    /*
    * 删除
    * */
    void delBatch(String[] ids);

    /*
   * 修改前根据id查询所有信息
   * */
    ClientUser find(Long uId);
    /*
    * 修改
    * */
    void update(ClientUser clientUser);

    /**
     * 多条件查询接口
     */
    Pageable<ClientUser> findSearchList(String memLevel, Date startTime, Date endTime);

    /*
     * 添加企业信息
     * */
    void saveCompany(ClientCompany clientCompany);
}
